/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.model;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

public class TestMajalah_1 {
    public static void main(String[] args) {
    Majalah tes = new Majalah ();

          try {
       tes.setIdKoleksi("M11890");
         } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, ex.getMessage());
            Logger.getLogger(TestMajalah.class.getName()).log(Level.SEVERE, null, ex);
        }

        tes.setJudul("NewsTeen");
        tes.setIssn("444.252.110");
        tes.setTahun("2011");
            System.out.println("Judul Majalah : "+tes.getJudul());
            System.out.println("Id Majalah : "+tes.getIdKoleksi());
            System.out.println("ISSN Majalah : "+tes.getIssn());
            System.out.println("Tahun : "+tes.getTahun());
            System.out.println("Terlambat : "+tes.isTerlambat(14));
            System.out.println("Besar Denda : "+tes.hitungDenda(14));
    }
}
